package zhongbo.java.air.airflightpath.listener;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;
import zhongbo.java.air.airflightpath.config.RedisListenerConfig;

/*
   通过频道log_cannel广播发送消息
 */
@Component
public class RedisLogChanelPublisher {
    @Autowired
    private StringRedisTemplate redisTemplate;

    public void Push(String message){
        redisTemplate.convertAndSend(RedisListenerConfig.LOG_CHANEL,message);
    }
}
